package org.jeecg.modules.wlhy.customer.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: hy_customer_account_book
 * @Author: jeecg-boot
 * @Date:   2021-01-15
 * @Version: V1.0
 */
@Data
@TableName("hy_customer_account_book")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_customer_account_book对象", description="hy_customer_account_book")
public class HyCustomerAccountBook implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**货主id*/
	@Excel(name = "货主id", width = 15)
    @ApiModelProperty(value = "货主id")
    private String customerId;
	/**userId*/
	@Excel(name = "userId", width = 15)
    @ApiModelProperty(value = "userId")
    private String userId;
	/**账号*/
	@Excel(name = "账号", width = 15)
    @ApiModelProperty(value = "账号")
    private String accNo;
	/**省市代码*/
	@Excel(name = "省市代码", width = 15)
    @ApiModelProperty(value = "省市代码")
    private String prov;
	/**多级账簿上级编号*/
	@Excel(name = "多级账簿上级编号", width = 15)
    @ApiModelProperty(value = "多级账簿上级编号")
    private String crLogAccNo;
	/**多级账簿名称*/
	@Excel(name = "多级账簿名称", width = 15)
    @ApiModelProperty(value = "多级账簿名称")
    private String logAccName;
	/**多级账簿编号*/
	@Excel(name = "多级账簿编号", width = 15)
    @ApiModelProperty(value = "多级账簿编号")
    private String logAccNo;
	/**多级账簿级别*/
	@Excel(name = "多级账簿级别", width = 15)
    @ApiModelProperty(value = "多级账簿级别")
    private String logAccNoGr;
	/**支付密码*/
	@Excel(name = "支付密码", width = 15)
    @ApiModelProperty(value = "支付密码")
    private String payPwd;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    @TableLogic
    private String delFlag;


    @ApiModelProperty(value = "金额")
    private BigDecimal amt;

    @ApiModelProperty(value = "可用余额")
    private BigDecimal availAmt;

    @ApiModelProperty(value = "冻结金额")
    private BigDecimal frzAmt;

    @ApiModelProperty(value = "账簿状态")
    private String accSts;

    @TableField(exist = false)
    private String khh;
}
